<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5-4 Bootstrap组件-下拉菜单</title>
    <link rel="stylesheet" href="./bootstrap-3.3.7/dist/css/bootstrap.min.css">
    <script src="jquery/jquery-3.4.1.min.js"></script>
    <script src="bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>

</head>
<body>

<!--
 <div class="dropdown">:整体下拉菜单绑定
 <sapn class="caret">:下拉图标
 <ul class="dropdown-menu">:下拉菜单
 <button data-toggle="dropdown">:绑定下拉事件

-->
<div class="dropdown">
    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
        这是一个按钮
        <sapn class="caret"></sapn>
    </button>
    <ul class="dropdown-menu">
        <li><a href="http://www.imooc.com">慕课网</a></li>
        <li><a href="http://www.imooc.com">慕课网</a></li>
        <li><a href="http://www.imooc.com">慕课网</a></li>
    </ul>
</div>

</body>
</html>
